import 'package:flutter_test/flutter_test.dart';
import 'package:flutter/services.dart';
import 'package:app_installer_ohos/app_installer_ohos.dart';

void main() {
  TestWidgetsFlutterBinding.ensureInitialized();

  const MethodChannel channel = MethodChannel('app_installer_ohos');

  setUp(() {
    channel.setMockMethodCallHandler((MethodCall methodCall) async {
      return '42';
    });
  });

  tearDown(() {
    channel.setMockMethodCallHandler(null);
  });

  test('goStore', () async {
    await AppInstaller.goStore('', '', '');
    const res = 'done';
    expect(res, 'done');
  });
}
